<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>



<div id="reloate" align="center">

<s:url id="urlTableCamiones" action="jsonTableCamiones"  />

<s:url id="editurl" action="ABMCamiones"/>


        <sjg:grid  
        autoencode="false"
    	id="gridedittable" caption="Camiones" dataType="json" href="%{urlTableCamiones}" pager="true" navigator="true" 
    	navigatorAddOptions="{height:200,reloadAfterSubmit:true,top:1,left:1,width:300}"
    	navigatorEditOptions="{height:280,reloadAfterSubmit:true}" navigatorDelete="true"
    	navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}" gridModel="gridModel" rowList="15" rowNum="15" editurl="%{editurl}"  editinline="false"     >
    	
    	<sjg:gridColumn name="id" index="id"  title="ID" editable="false"  width="30" key="true" required="false"  />
    	<sjg:gridColumn name="matricula"  index="matricula" id="matricula" title="Matricula"   editable="true" edittype="text" editrules="{required: true}" />
    	<sjg:gridColumn name="capacidad" index="capacidad" id="capacidad" title="Capacidad"   editable="true" edittype="text" editrules="{required: true}" />
    	<sjg:gridColumn name="marca"  index="marca" id="marca" title="Marca"   editable="true" edittype="text" editrules="{required: true}" editoptions="{size: 25, maxlength: 50}"/>
    	<sjg:gridColumn name="anio" index="anio" id="anio" title="Anio"  editable="true" edittype="text" editrules="{number: true,required: true,minValue : 1,maxValue : 9999}" />
    	<sjg:gridColumn name="tipo"  index="tipo" title="Tipo" editable="true" hidden="true"  editrules="{edithidden:true}" edittype="select" editoptions="{value:'Camion:Camion;Remolque:Remolque'}" />
    	<sjg:gridColumn name="tipo" index="tipo" title="Tipo" />
    </sjg:grid>
    
<!--    <sj:submit id="grid_edit_addbutton" value="Add Row" onClickTopics="Crear Camion" button="true"  />-->
    
    

  </div>
  
 
<div id="ie_clearing"> &#160; </div>








